import request from '@/utils/request'

// 房屋列表
export const buildingPageList = (params) => {
  return request({
    method: 'get',
    url: '/system/house/list',
    params: params,
  })
}
// 新增房屋
export const buildingAdd = (params) => {
  return request({
    method: 'post',
    url: '/system/house/add',
    data: params,
  })
}
// 更新房屋
export const buildingUpdate = (params) => {
  return request({
    method: 'put',
    url: `/system/house/update`,
    data: params,
  })
}
// 删除房屋
export const buildingDelete = (params) => {
  return request({
    method: 'delete',
    url: '/system/house/delete',
    params: params,
  })
}
// 房屋详情
export const buildingDetail = (params) => {
  return request({
    method: 'get',
    url: '/system/house/get',
    params: params,
  })
}
